import ScrollPosition from '@/libs/scroll-position'

export default {
    beforeEach: ({from, next}) => {
        from.meta.keep && ScrollPosition.save(from.path)
        next()
    }
}